package com.qiqidream.admin.system.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiqidream.admin.common.base.BaseEntity;
import com.qiqidream.admin.common.enums.MenuType;
import lombok.*;

/**
 * @author QiQiDream
 * @since 2019/12/2 9:11
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
@TableName("sys_menu_api")
public class MenuApi extends BaseEntity {

    private Long parentId;

    private String path;
    private String redirect;
    private String name;
    private String title;
    private String icon;
    private String component;

    @TableField("is_hidden")
    private Boolean hidden;

    @TableField("is_cache")
    private Boolean cache;

    private MenuType type;

    @TableField(value = "sort",fill = FieldFill.INSERT)
    private Integer sort;
}
